package com.java1412;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author java1412
 * @create 2021-05-20 9:24
 */
@SpringBootApplication
public class SpringBootDemo19Application {

    /**
     * 第二种方式，使用@Bean创建一个ResourceConfig类实例
     */
    //    @Bean
    //    public ResourceConfig resourceConfig() {
    //        ResourceConfig config = new ResourceConfig();
    //        config.register(HelloResource.class);
    //        return config;
    //    }

    public static void main(String[] args) {
        SpringApplication.run(SpringBootDemo19Application.class, args);
    }
}